<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form">


    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>修改用户</legend>
    </fieldset>

    <div class="layui-form-item">
        <label class="layui-form-label required">id</label>
        <div class="layui-input-block">
            <input type="text" name="userid"  value="10001" class="layui-input" readonly>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">用户名</label>
        <div class="layui-input-block">
            <input type="text" name="username" value="zhangsan" class="layui-input" readonly>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">密码</label>
        <div class="layui-input-block">
            <input type="password" name="password"  value="123456" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">角色</label>
        <div class="layui-input-block">
            <input type="radio" name="roleName" value="普通用户" title="普通用户" checked >
            <input type="radio" name="roleName" value="超级管理员" title="超级管理员" >
            <input type="radio" name="roleName" value="系统管理员" title="系统管理员">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">真实姓名</label>
        <div class="layui-input-block">
            <input type="text" name="name"  value="张三" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">学校名称</label>
        <div class="layui-input-block">
            <select name="collegeName" lay-filter="collegeName" disabled>
                <option value="">--请选择--</option>
                <option value="中北大学" selected>中北大学</option>
                <option value="太原科技大学">太原科技大学</option>
                <option value="太原理工大学">太原理工大学</option>
            </select>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">院系名称</label>
        <div class="layui-input-block">
            <select name="deptName" lay-filter="deptName" disabled>
                <option value="">--请选择--</option>
                <option value="软件学院" selected>软件学院</option>
                <option value="机械信息学院">机械信息学院</option>
            </select>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">专业</label>
        <div class="layui-input-block">
            <select name="majorName" lay-filter="majorName" disabled>
                <option value="">--请选择--</option>
                <option value="软件工程" selected>软件工程</option>
                <option value="计算机科学技术">机械信息学院</option>
            </select>
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">班级</label>
        <div class="layui-input-block">
            <select name="className" lay-filter="className" disabled>
                <option value="">--请选择--</option>
                <option value="22130433" selected>22130433</option>
                <option value="计算机科学技术">机械信息学院</option>
            </select>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">年级</label>
        <div class="layui-input-block" >
            <input type="text" name="grade" id="grade" autocomplete="off" class="layui-input" value="2022" disabled>
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">校内职务</label>
        <div class="layui-input-block">
            <input type="text" name="work"  value="班长" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">手机</label>
        <div class="layui-input-block">
            <input type="number" name="phone" lay-verify="required"   value="18135802688" class="layui-input">
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">QQ</label>
        <div class="layui-input-block">
            <input type="email" name="email"  value="3471648431" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">用户状态</label>
        <div class="layui-input-block">
            <select name="status" lay-filter="status" readonly="">
                <option value="启用" selected>启用</option>
                <option value="禁用">禁用</option>
            </select>
        </div>
    </div>


    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注信息</label>
        <div class="layui-input-block">
            <textarea name="remark" class="layui-textarea" placeholder="请输入备注信息" ></textarea>
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>
<script src="../../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script>
    layui.use(['form'], function () {
        var form = layui.form,
            layer = layui.layer,
            laydate = layui.laydate,
            $ = layui.$;

        laydate.render({
            elem:'#grade',
            type:'year'
        });
        //监听提交
        form.on('submit(saveBtn)', function (data) {
            var index = layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            }, function () {

                // 关闭弹出层
                layer.close(index);

                var iframeIndex = parent.layer.getFrameIndex(window.name);
                parent.layer.close(iframeIndex);

            });

            return false;
        });

    });
</script>
</body>
</html>